vcIntegerSignal

Typed signal is a signal that can send objects of specific type.

See in: Overview

Module: vcBehaviors

Parent: vcSignal

Children -

Referenced by: vcComponentFlowProxy.PortSignal

Properties

Learn how to use properties here. The properties are also inherited from the parent class.

NameTypeAccessDescription
ValueIntegerRWGets or sets the value of signal. Note, setting this value does not trigger 'OnSignal' event. If event trigger is required, use signal(value) method.

Methods

Learn how to use methods here. The methods are also inherited from the parent class.

NameReturn TypeParametersDescription
signalNoneInteger valueSets the signal value and signals it to all connected behaviors.
See more
Parameters:
value: The value set for this signal and signaled to connected behaviors.
waitForobjectInteger OR None value,
Optional Keyword[waitTrigger = Boolean]
Blocks script execution until vcSignal.Value is equal to the "value".
See more
This function returns an awaitable task. It must be awaited.

Parameters:
value (object): Value that is used for comparison. When the value is equal to vcSignal.Value, the task completes.
Optional: waitTrigger (boolean): False by default. When waitTrigger is True, the task will wait for the value to change first, before comparing it against "value". Otherwise, the comparison is done immediately and when the values match, the task will complete without blocking the script.

Returns:
Awaitable[List]: The task instance. When awaited, returns a list of event arguments that the event has been triggered with.
waitForNotobjectInteger OR None value,
Optional Keyword[waitTrigger = Boolean]
Blocks script execution until vcSignal.Value is not equal to the "value".
See more
This function returns an awaitable task. It must be awaited.

Parameters:
value (object): Value that is used for comparison. When the value is not equal to vcSignal.Value, the task completes.
Optional: waitTrigger (boolean): False by default. When waitTrigger is True, the task will wait for the value to change first, before comparing it against "value". Otherwise, the comparison is done immediately and when the values do not match, the task will complete without blocking the script.

Returns:
Awaitable[List]: The task instance. When awaited, returns a list of event arguments that the event has been triggered with.